package com.example.demo.entity;

public class User {
	
	private int id;
	private String name;
	private String password;;
	private int status;
	private int power;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	public int getPower() {
		return power;
	}
	public void setPower(int power) {
		this.power = power;
	}
	public User(int id, String name, String password, int status, int power) {
		super();
		this.id = id;
		this.name = name;
		this.password = password;
		this.status = status;
		this.power = power;
	}
	public User() {
		super();
	}
	//状态
	public static String[] statuss= {"正常","禁用"};
	public String getStatusname() {
		return statuss[status];
	}
	
	public static String[] powers= {"管理员","前台","厨房"};
	public String getPowername() {
		return powers[power];
	}
	
	

}
